
<div id="Search">
  <span class="left"></span><span class="right"></span>
	<script type="text/javascript">
    
    <!--
    function checkSearchForm()
    {
        if(document.getElementById('keyword').value)
        {
            return true;
        }
        else
        {
				    alert("<?php echo $this->_var['lang']['no_keywords']; ?>");
            return false;
        }
    }
    -->
    
    </script>
   <?php if ($this->_var['searchkeywords']): ?>
   <strong><?php echo $this->_var['lang']['hot_search']; ?>：</strong>
   <?php $_from = $this->_var['searchkeywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'val');if (count($_from)):
    foreach ($_from AS $this->_var['val']):
?>
   <a href="search.php?keywords=<?php echo urlencode($this->_var['val']); ?>"><?php echo $this->_var['val']; ?></a>
   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
   <?php endif; ?>
	 <div class="clearfix FormBox">
	 <form id="searchForm" name="searchForm" method="get" action="search.php" onSubmit="return checkSearchForm()" class="f_l">
	 <strong>商品搜索：</strong> 
   <select name="category" id="category">
      <option value="0"><?php echo $this->_var['lang']['all_category']; ?></option>
      <?php echo $this->_var['category_list']; ?>
    </select>
   <input name="keywords" type="text" id="keyword" value="<?php echo htmlspecialchars($this->_var['search_keywords']); ?>" class="InputBorder"/>
   <input name="imageField" type="image" src="themes/360/images/search_submit.jpg" style="position:relative; top:6px;" />
   <a href="search.php?act=advanced_search"><?php echo $this->_var['lang']['advanced_search']; ?></a>
   </form>
	  <div class="cart f_r" id="ECS_CARTINFO">
		  <span class="left"></span><span class="right"></span>
		  <?php echo $this->smarty_insert_scripts(array('files'=>'transport.js')); ?>
		  <?php 
$k = array (
  'name' => 'cart_info',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?>
		</div>
	 </div>
</div>
